<?php if (!defined('THINK_PATH')) exit();?><div class="row">
          <div class="col-lg-12">
            <div class="card">
              <ul class="nav nav-tabs page-tabs">
                <li class="active"> <a href="#!">基本配置</a> </li>
              </ul>
              <div class="tab-content">
                <div class="tab-pane active">
                  
                  <form id="site_form" class="edit-form">
                    <div class="form-group">
                      <label for="web_site_title">站点名称</label>
                      <input class="form-control" type="text"  name="name" value="<?php echo ($data["name"]); ?>" placeholder="请输入站点名称">
                      <small class="help-block">显示地方：<code>前台底部版权</code></small>
                    </div>
                    <div class="form-group">
                      <label for="web_site_title">网站标题</label>
                      <input class="form-control" type="text"  name="title" value="<?php echo ($data["title"]); ?>" placeholder="请输入站点标题">
                    </div>
                    <div class="form-group">
                      <label for="web_site_logo">LOGO图片</label>
                      <div class="input-group">
                        <input type="text" class="form-control" name="logo" id="web_site_logo" value="<?php echo ($data["logo"]); ?>">
                        <div class="input-group-btn"><button class="btn btn-default" type="button">上传图片(没做上传)</button></div>
                      </div>
                    </div>
                    <div class="form-group">
                      <label for="web_site_keywords">站点关键词</label>
                      <input class="form-control" type="text" id="web_site_keywords" name="keywords" value="<?php echo ($data["keywords"]); ?>">
                      <small class="help-block">网站搜索引擎关键字</small>
                    </div>
                    <div class="form-group">
                      <label for="web_site_description">站点描述</label>
                      <textarea class="form-control" rows="5" name="description" placeholder="请输入站点描述"><?php echo ($data["description"]); ?></textarea>
                      <small class="help-block">网站描述，有利于搜索引擎抓取相关信息</small>
                    </div>
                    <div class="form-group">
                      <label for="web_site_icp">备案信息</label>
                      <input class="form-control" type="text" id="web_site_icp" name="ipc" value="<?php echo ($data["ipc"]); ?>" placeholder="请输入备案信息">
                    </div>
                    <div class="form-group">
                      <label for="web_site_icp">联系方式</label>
                      <input class="form-control" type="text" id="web_site_icp" name="con" value="<?php echo ($data["con"]); ?>" placeholder="请输入联系方式">
            
                      <small class="help-block">显示地方：<code>前台底部显示，可以添加qq或邮箱</code></small>
                    </div>
                    <div class="form-group">
                      <label class="btn-block" for="web_site_status">站点开关</label>
                      <label class="lyear-switch switch-solid switch-primary">
                        <input name="type" value="1" type="checkbox" <?php if($data['type']==1){echo 'checked';} ?>>
                        <span></span>
                      </label>
                      <small class="help-block">站点关闭后将不能访问，后台可正常登录</small>
                    </div>
                    <div class="form-group">
                      <a class="btn btn-label btn-primary" id="send"><label><i class="mdi mdi-checkbox-marked-circle-outline"></i></label> 确认提交</a>
                     
                    </div>
                  </form>
                  
                </div>
              </div>

            </div>
          </div>
          
        </div>
<script type="text/javascript">
//post
  $('#send').click(function(){
  lightyear.loading('show');  // 显示
    $.ajax({
    type: "POST",
    url: "<?php echo U('Index/web_post');?>", 
    data:$('#site_form').serialize(), 
      success: function(data){  
        if(data.indexOf('操作成功')>=0){
        lightyear.loading('hide');  // 隐藏  
     lightyear.notify('操作成功', 'success', 1000, 'mdi mdi-emoticon-happy', 'top', 'center');
        }else{
     lightyear.notify(data, 'danger', 1000);
      lightyear.loading('hide');  // 隐藏
        }
      }
    });
  });
</script>